include:
  - app.jobseekers.local-core

Check out MyJS Code:
  svn.latest:
    - name: svn://svn-pg.jobstreet.com/JobSeekers/trunk/myjs11
    - target: /tmp/svn/JobSeekers/myjs11
    - user: lighttpd
    - username: ciuser
    - password: automation
    - unless: test -d /var/www/seekasia.com/JobSeekers/myjs11

Checkout local dev Sub SVN Module for MyJS:
  svn.latest:
    - name: svn://svn-pg.jobstreet.com/JobSeekers/trunk/job-search/Model/JobSearch
    - target: /tmp/svn/JobSeekers/myjs11/Model/JobSearch
    - user: lighttpd
    - username: ciuser
    - password: automation
    - unless: test -d /var/www/seekasia.com/JobSeekers/myjs11

Copy local dev MyJS Code to destination:
  cmd.run:
    - name: cp -r /tmp/svn/JobSeekers/myjs11 /var/www/seekasia.com/JobSeekers/
    - unless: test -d /var/www/seekasia.com/JobSeekers/myjs11

Setup local dev MyJS Config:
  cmd.run:
    - name: ant -Dconfig.env=localdev setup_config
    - cwd: /var/www/seekasia.com/JobSeekers/myjs11

Setup local dev MyJS Controller Symlink:
  file.symlink:
    - name: /var/www/html/myjs11
    - target: /var/www/seekasia.com/JobSeekers/myjs11/Controller

Setup local dev MyJS Static Symlink:
  file.symlink:
    - name: /var/www/html/myjs11-static
    - target: /var/www/seekasia.com/JobSeekers/myjs11/Static

Setup local dev MyJS AngularJS Symlink:
  file.symlink:
    - name: /var/www/html/myjs11-angular
    - target: /var/www/seekasia.com/JobSeekers/myjs11/AngularJsApp
